package com.jrx.anytxn.reporting.mapper.ext;

import com.jrx.anytxn.reporting.entity.MrCustomerInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExtMrCustomerInfoMapper {

    int updateByTcc(MrCustomerInfo mrCustomerInfo);

    /**
     * 根据租户id和其余值查询 监管报送的客户信息
     * @param customerId 客户id
     * @param mobile 手机号
     * @param idNumber 证件号
     * @param tenantId 租户id
     * @return 监管报送的客户信息表集合
     */
    List<MrCustomerInfo> selectMrCustomersByCusIdOrMobileOrIdNumber(@Param("customerId") String customerId, @Param("mobile")String mobile, @Param("idNumber")String idNumber, @Param("tenantId")String tenantId);

    /**
     * 根据租户id分片键客户id和主键id查询客户信息
     * @param tenantId 租户id
     * @param customerId 客户id
     * @return 监管报送的客户信息
     */
    MrCustomerInfo selectMrCustomersByTenantIdAndChannelAndCustomerId(@Param("tenantId") String tenantId, @Param("channel") String channel, @Param("customerId") String customerId);

    /**
     * 根据业务日期查询
     * @param businessDate
     * @return
     */
    List<MrCustomerInfo> selectByBusinessDate(@Param("businessDate") Date businessDate);

}
